﻿using Avalon.Core.Providers;
using System;

namespace Avalon.Core.MVC.Attributes {

    [AttributeUsage(AttributeTargets.Class)]
    public class PipelineAttribute : Attribute {
        /// <summary>
        /// The name of the pipeline
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// The type of the pipeline.
        /// </summary>
        public PipelineType PipelineType { get; set; }

        /// <summary>
        /// CTOR
        /// </summary>
        /// <param name="name">the name of the pipeline</param>
        public PipelineAttribute(string name, PipelineType pipelineType = PipelineType.Get) {
            this.Name = name;
            this.PipelineType = pipelineType;
        }
    }
}
